package com.basketball.gym.mapper;

import com.basketball.gym.pojo.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 赵肖云
 * @since 2021-03-23
 */
@Repository
public interface AdminMapper extends BaseMapper<Admin> {

    /**
     * 查询符合条件的管理员数量
     */
    Integer getAdminSum(Admin admin);

    /**
     * 查询符合条件的管理员
     */
    List<Admin> getAdmins(Admin admin);
}
